package cn.psvmc.cxzapi.mapper.order;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.order.TOrderCoupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单优惠券表 Mapper 接口
 * @Author auto
 * @Date 2024-08-12
 */
public interface TOrderCouponMapper extends MyBaseMapper<TOrderCoupon> {
    //批量插入订单优惠券
    void insertBatch(@Param("orderId") Integer orderId,@Param("couponIds") List<Integer> couponIds);

    //根据订单id获取优惠券IDS
    List<Map> listCouponIdByOrderId(@Param("orderId") Integer orderId);
}
